#gdoc-admin-bar {
    display: none;
    position: absolute;
    right: 8px;
    margin-top: 8px;
    opacity: 0.7;
    z-index: $zindex-adminbar;
    a {
        color: $blue-30;
    }
    span {
        color: $blue-60;
        margin: 0 4px;
    }
}

.fragment-json {
    background-color: $gray-10;
    padding: 32px;
    white-space: pre-wrap;
    border-radius: 3px;
}

.centered-article-container {
    // !important because we never want this to be overwritten
    .ref {
        color: $vermillion !important;
        text-decoration: none !important;
        &:visited {
            color: $vermillion !important;
        }
    }

    .ref + .ref {
        margin-left: 4px;
        position: relative;
        ::before {
            font-size: 0.75em;
            position: absolute;
            content: ",";
            left: -0.25em;
            top: -0.35em;
            line-height: 1;
            color: $blue-60;
            pointer-events: none;
        }
    }

    .toc-wrapper {
        position: sticky;
        top: 0;
        height: 0;
        // Above explorer chrome
        z-index: 3;
        margin-top: -48px;
        .entry-sidebar {
            height: 100vh;
            position: absolute;
            transition: margin 300ms ease;
            width: 400px;
            margin-left: -400px;
            box-shadow: none;
            @include sm-only {
                width: 100vw;
                margin-left: -100vw;
            }
            @include sm-up {
                ul {
                    margin-left: 32px;
                }
            }

            li {
                &:first-child {
                    margin-top: 36px;
                }

                &.section {
                    margin-top: 20px;
                }
                &.subsection a {
                    color: $blue-60;
                    margin-left: 16px;
                    line-height: 1.125em;
                }
                &.active a {
                    border-left-color: $vermillion;
                    background: unset;
                    font-weight: bold;
                    // Counteract the font-weight so that the text doesn't wrap when active
                    letter-spacing: -0.09px;
                }
                a {
                    padding-left: 16px;
                    color: $blue-90;
                    border-width: 4px;
                    padding-right: 32px;
                    margin-left: 0;
                    font-weight: 400;

                    &:hover {
                        background: none;
                        text-decoration: underline;
                    }
                }
            }

            .toggle-toc {
                margin-left: 0;
                transform: translateX(calc(100% + 16px));
                position: absolute;
                top: 0;
                bottom: 0;
                right: 0;
                padding: 16px 0;
                pointer-events: none;
                display: unset;
                transition: transform 300ms ease;
                button {
                    @include popover-box-button;
                    z-index: 20;
                    position: sticky;
                    top: 16px;
                    pointer-events: auto;
                    white-space: nowrap;
                    box-shadow: none;
                    background: #fff;
                    border: 1px solid $blue-20;
                    line-height: 1.25;
                    padding: 6px;
                    border-radius: 4px;

                    &:hover {
                        background: #fff;
                        svg {
                            color: $blue-100;
                        }
                    }
                    svg {
                        margin-right: 0;
                        color: $blue-90;
                        height: 12px;
                    }

                    span {
                        color: $blue-90;
                        margin-left: 5px;
                        position: relative;
                        top: 1px;
                    }
                }
            }
            &.entry-sidebar--is-open {
                margin-left: 0;
                .toggle-toc {
                    transform: translateX(-16px);
                    button {
                        border: none;
                        span {
                            display: none;
                        }
                    }
                }
            }
        }
    }

    // Quick and dirty layout overrides for article printing
    // Stacks all elements into a single, full-width column
    // There's lots to improve, but it's better than before!
    @media print {
        grid-template-columns: repeat(12, 1fr);

        .centered-article-header {
            grid-column: 2 / span 10;
        }

        [class*="article-block__"] {
            grid-column: 2 / span 10 !important;
        }

        @include column-block-override {
            grid-template-columns: repeat(12, 1fr);
            grid-column: 1 / span 12 !important;
            > div {
                display: grid;
                grid-column: 1 / span 12 !important;
                grid-template-columns: repeat(12, 1fr);
                grid-row-start: auto;
            }
        }

        .sticky-column-wrapper {
            position: relative;
            grid-column: 1 / span 12 !important;
            grid-template-columns: repeat(12, 1fr);
        }
    }
}

:root {
    --banner-height: 200px;
    @include md-down {
        --banner-height: 160px;
    }
}

.centered-article-header__banner {
    position: absolute;
    left: 0;
    right: 0;
    height: var(--banner-height);
    background: $amber;
    z-index: -1;
}

// Until we implement a way to specifiy src-sets in archie, this image will need to have a 1:1 aspect ratio
// to fit on both mobile and desktop resolutions
.centered-article-header__cover-image {
    height: 200px;
    overflow: hidden;
    position: absolute;
    width: 100%;
    z-index: -1;
    img {
        width: 100%;
        object-fit: cover;
        height: 100%;
    }
}

.article-summary {
    margin-bottom: 32px;
}

.deprecation-notice {
    --bg-color: #fff5d8;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    border-radius: 4px;
    padding: 16px;
    padding-bottom: 0;
    margin-bottom: 24px;
    z-index: $zindex-deprecation-notice;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        right: 50%;
        height: 100%;
        background-color: var(--bg-color);
        transition: all 0.3s ease;
        z-index: -1;
    }

    &--sticky::before {
        left: -50vw;
        right: -50vw;
    }

    .article-block__text,
    .article-block__list,
    .article-block__html,
    .article-block__numbered-list {
        @include body-3-regular;
    }
}

.deprecation-notice__heading {
    @include h4-semibold;
    margin-top: 0;
    margin-bottom: 8px;
    color: $vermillion;
}

.deprecation-notice__icon {
    margin-right: 8px;
}

.citation-deprecated-notice {
    font-weight: 700;

    &__highlight {
        color: $vermillion;
    }
}

.centered-article-header {
    background: $white;
    margin: 80px 0 24px;
    min-height: calc(var(--banner-height) - 80px);
    padding-top: 48px;

    @include md-down {
        margin-top: 48px;
        padding-top: 16px;
    }
}

.article-block__text {
    margin-top: 0;
}

.article-block__blockquote {
    margin-top: 0;
    color: $blue-60;
    p {
        font-style: italic;
        &:last-of-type {
            margin-bottom: 0px;
        }
    }
    a {
        color: $blue-60;
    }
    footer {
        margin-top: 8px;
    }
    cite {
        font-style: normal;
    }
}

.article-block__heading {
    text-wrap: balance;
}

h1.article-block__heading {
    a.deep-link {
        height: 16px;
        width: 16px;
    }
}
h2.article-block__heading {
    a.deep-link {
        height: 14px;
        width: 14px;
    }
}
h3.article-block__heading {
    a.deep-link {
        height: 12px;
        width: 12px;
    }
}

.article-block__video {
    margin: 32px 0;
    text-align: center;
    a {
        @include owid-link-90;
    }
    video {
        max-width: 100%;
        max-height: 60vh;
    }
    figcaption {
        @include body-3-medium-italic;
        color: $blue-60;
        text-align: center;
        text-wrap: balance;
        margin-top: 9px; // to match the image caption when side-by-side
    }
}

/* A side-by-side with exactly one image/video in each column */
.article-block__side-by-side {
    > div {
        .article-block__video:only-child,
        .article-block__image:only-child {
            /* The column container already has a margin, so these block elements don't need one */
            margin: 0;
        }
    }

    /* Add a bottom margin to the first element once they collapse to single column */
    @include md-down {
        > div:first-child {
            .article-block__video:only-child,
            .article-block__image:only-child {
                margin-bottom: 24px;
            }
        }
    }
}

.article-block__sticky-left,
.article-block__sticky-right {
    @include md-up {
        .article-block__heading:first-child,
        .article-block__image:first-child {
            margin-top: 0;
        }
    }
}

.article-block__image-caption {
    @include body-3-medium-italic;
    color: $blue-60;
    text-align: center;
    text-wrap: balance;
    margin-top: 16px;
}

h2.article-block__heading.has-supertitle {
    margin-top: 24px;
    text-align: center;
    .article-block__heading-supertitle {
        color: $blue-50;
        margin-bottom: 8px;
    }
}

.centered-article-container > .article-block__divider {
    border-top: 1px solid $blue-20;
    margin: 48px 0;
}

// Don't show the divider directly after the ToC
.article-block__toc + .article-block__divider {
    border: none;
    margin: 0;
}

h3.article-block__heading.has-supertitle {
    text-align: center;

    .article-block__heading-supertitle {
        color: $blue-50;
        margin-bottom: 8px;
    }

    + * {
        margin-top: 0;
    }
}

.centered-article-header__breadcrumbs-container {
    .centered-article-header__breadcrumbs {
        @include body-3-regular;
        @include sm-only {
            @include note-1-medium;
        }
        &.breadcrumbs-white {
            color: $white;
        }
        &.breadcrumbs-blue {
            color: $blue-90;
        }

        // Idea here: By using this positioning, we can have the breadcrumbs
        // take up exactly: (number of lines - 1) * line-height
        // in height, effectively, such that the header is always the same height
        // unless the breadcrumbs are longer than a single line.
        --header-breadcrumb-margin-top: 40px;

        @include md-down {
            --header-breadcrumb-margin-top: 18px;
        }

        margin-top: var(--header-breadcrumb-margin-top);
        margin-bottom: calc(-1.6em - var(--header-breadcrumb-margin-top));

        a {
            @include owid-link-90;
            color: inherit;

            &:visited,
            &:hover {
                color: inherit;
            }
        }

        .separator {
            margin: 0 0.5rem;
            vertical-align: -0.05em;
            opacity: 0.6;
            color: inherit;
        }
    }
}

.centered-article-header__title-container {
    .centered-article-header__supertitle {
        @include overline-black-caps;
        color: $blue-50;
    }

    .centered-article-header__title {
        @include display-2-semibold;
        margin-top: 0;
        margin-bottom: 24px;
        color: $blue-90;
        text-wrap: balance;

        @include md-down {
            @include h2-bold;
            margin: 0 16px;
            margin-bottom: 8px;
        }
    }
}

.centered-article-header__subtitle {
    @include subtitle-1;
    margin-top: 0;
    color: $blue-50;
    text-wrap: balance;

    @include md-down {
        @include body-2-regular;
        margin: 0 16px;
        margin-bottom: 16px;
    }
}

.centered-article-header__meta-container {
    border-bottom: 1px solid $blue-10;
    border-top: 1px solid $blue-10;
    padding: 32px 0;
    color: $blue-60;
    @include body-3-regular;

    a {
        text-underline-offset: 5px;
        margin-bottom: 8px;
        @include owid-link-60;
        &:visited {
            color: $blue-60;
        }
    }

    .centered-article-header__links a {
        @include md-down {
            margin: 0;
            &:last-child {
                margin-top: 4px;
            }
        }
    }

    svg {
        margin-right: 8px;
    }

    @include sm-up {
        > div:not(:last-child) {
            border-right: 1px solid $blue-10;
        }
    }

    @include sm-only {
        padding: 16px 0;
        > div:not(:last-child) {
            border-bottom: 1px solid $blue-10;
            padding-bottom: 16px;
            margin-bottom: 16px;
        }
    }
}

.centered-article-header__meta-container-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 24px;
}

.centered-article-header__browse-versions-button {
    @include owid-link-60;
    padding: 0;
    background-color: transparent;
    display: inline;
    cursor: pointer;
}

.footnote-container,
#article-citation,
#article-licence {
    @include body-3-medium;
    color: $blue-60;
    background-color: $beige;

    h3 {
        @include h3-bold;
        color: $blue-50;
        margin: 24px 0 16px;
    }

    a {
        @include owid-link-60;
        color: inherit;
    }
}

.footnote-container {
    margin-top: 48px;
    padding-top: 40px;
    padding-bottom: 0;
    h3 {
        @include overline-black-caps;
        color: $blue-90;
        text-align: center;
        padding-bottom: 24px;
        margin-bottom: 32px;
        margin-top: 0;
        border-bottom: 1px solid $blue-20;
    }
    .footnote-list {
        column-count: 2;
        &.footnote-list__single-column {
            column-count: 1;
        }
        column-span: none;
        column-gap: 48px;
        color: $blue-60;
        padding-bottom: 48px;
        border-bottom: 1px solid $blue-20;
        li {
            break-inside: avoid-column;
            -webkit-column-break-inside: avoid;
            margin-left: 16px;
        }
        li:first-child p {
            margin-top: 0;
        }

        @include sm-only {
            column-count: 1;
            margin: 0 24px;
            li {
                margin-left: 0;
            }
        }

        .article-block__text,
        .article-block__list,
        .article-block__html,
        .article-block__numbered-list {
            @include body-3-medium;
        }
    }
}

#article-citation {
    padding-top: 48px;
    h3 {
        margin-top: 0;
    }
    p {
        margin-bottom: 16px;
        color: $blue-90;
    }
    div:last-of-type .wp-code-snippet {
        margin-bottom: 0;
        font-size: 0.875rem;
    }
    > div:last-child {
        padding-bottom: 48px;
        border-bottom: 1px solid $blue-20;
    }
}

#article-licence {
    padding-top: 48px;
    padding-bottom: 48px;
    text-align: center;
}

// When we disable citations then #article-license follows the above content directly. If there
// is a non-p element then there is usually enough margin at the top but if there is a p element
// then we need to add some margin to the top of the license.
p.article-block__text + #article-licence {
    margin-top: 48px;
}

.article-block__text,
.article-block__list,
.article-block__html,
.article-block__numbered-list {
    @include body-1-regular;
    margin-bottom: 16px;

    .span-link {
        @include owid-link-60;
        color: inherit;
    }

    @include md-down {
        @include body-2-regular;
    }
}

.span-linked-chart {
    .span-linked-chart-icon {
        position: relative;
        top: -1px;
        width: 12px;
        height: 12px;
        margin-left: 3px;
        color: $blue-30;
        @media (hover: none) {
            display: none;
        }
    }
}

.cta {
    .span-linked-chart-icon {
        display: none;
    }
}

// A fix for the legacy way we did CTAs for data insights
// If/once we've migrated them all to use the {.cta} component, this won't be necessary
// TODO: https://github.com/owid/owid-grapher/issues/5437
.span-linked-chart:has(+ .span-plain-arrow) {
    .span-linked-chart-icon {
        display: none;
    }
}

.article-block__numbered-list,
.article-block__list {
    margin-left: 24px;

    li {
        margin-bottom: 0.5em;

        &:last-child {
            margin-bottom: 0;
        }
    }
}

.article-block__aside {
    position: relative;
    margin: 0;
    color: $blue-60;
    align-self: start;
    grid-row: span 3;

    margin-bottom: 8px;
    a {
        @include owid-link-90;
    }

    @include md-down {
        border-left: 1px solid $blue-20;
        border-right: 1px solid $blue-20;
        padding: 16px;
        text-align: center;
    }

    @include md-down {
        margin-bottom: 16px;
    }
}

.article-block__aside--right {
    border-left: 1px solid $blue-20;
    padding-left: 16px;
}

.article-block__aside--left {
    border-right: 1px solid $blue-20;
    padding-right: 16px;
    @include md-up {
        text-align: right;
    }
}

@include table-block-override {
    overflow-x: auto;
    margin-bottom: 32px;
    table {
        margin: auto;
        border-collapse: collapse;

        th {
            text-align: left;
            &[scope="row"] {
                text-align: right;
            }
        }

        th[scope="col"] {
            text-wrap: nowrap;
        }

        th[scope="col"],
        th[scope="row"] {
            background-color: $blue-5;
            p {
                font-weight: 700;
                margin-bottom: 0;
            }
        }

        td,
        th {
            border: 1px solid $blue-20;
            padding: 12px;
            vertical-align: top;
            text-align: left;
        }

        .article-block__text,
        .article-block__list {
            @include body-3-regular;
            &:last-child {
                margin-bottom: 0;
            }
            @include md-down {
                font-size: 0.75rem;
            }
        }
        caption {
            margin-top: 6px;
            caption-side: bottom;
            color: $blue-60;
            @include body-3-medium-italic;
            a {
                @include owid-link-90;
            }
        }
    }
}

div.raw-html-table__container {
    @include body-3-regular;
}

.article-block__horizontal-rule {
    border-top: 1px solid $blue-10;
    padding: 0;
    margin: 48px 0;
}

.article-block__chart,
.article-block__explorer {
    // width is necessary for containerNode.getBoundingClientRect() in Grapher.renderGrapherIntoContainer
    width: 100%;
    margin: 32px 0 48px 0;

    figure {
        margin: 0;
    }

    .GrapherComponent {
        display: block;
        margin: 0 auto;
    }

    .Explorer {
        label {
            margin-bottom: 0;
        }
    }
}

.article-block__chart-story {
    .chart-story__nav-arrow {
        cursor: pointer;
        display: flex;
        align-items: center;
        background: none;
        border: none;
        font-size: 28px;

        &:disabled {
            cursor: default;
            svg {
                color: $blue-40;
            }
        }
    }

    .chart-story__nav-arrow--left {
        justify-content: flex-start;
        svg {
            margin-left: 4px;
        }
    }

    .chart-story__nav-arrow--right {
        justify-content: flex-end;
        svg {
            margin-right: 8px;
        }
    }

    .chart-story__narrative-text {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .chart-story__chart {
        margin-bottom: 48px;
        // width is necessary for containerNode.getBoundingClientRect() in Grapher.renderGrapherIntoContainer
        width: 100%;
        > div {
            margin: 0;
            width: 100%;
            > figure {
                margin: 0;
            }
        }
    }

    .chart-story__technical-text {
        margin-bottom: 16px;
    }

    .chart-story__technical-details {
        margin-bottom: 24px;
        li {
            margin-bottom: 12px;
        }
    }
}

.sticky-column-wrapper {
    top: 32px;
    position: sticky;
}

.article-block__cookie-notice {
    .cookie-preferences {
        margin: 0;
        margin-bottom: 24px;
        padding: 32px 24px;
        border: none;
        background-color: $blue-5;

        @include sm-only {
            margin-bottom: 16px;
        }

        h2 {
            @include subtitle-2-bold;
            margin-bottom: 24px;
        }

        input:disabled + label {
            color: $blue-50;
        }

        .description,
        .last-updated {
            @include body-3-regular;
            color: $blue-65;
        }

        .cookie-preference {
            margin-bottom: 24px;
            & + .cookie-preference {
                margin-top: 32px;
            }

            .checkbox {
                margin-bottom: 8px;

                label {
                    display: inline-flex;
                    cursor: pointer;
                    margin: 0;
                }

                .custom {
                    top: unset;
                }

                .label {
                    margin: 0;
                    @include body-3-bold;
                    text-transform: initial;
                    line-height: 16px;
                    padding-left: 24px;
                }

                .label {
                    color: $blue-90;
                }
            }

            .checkbox--disabled {
                label {
                    cursor: not-allowed;
                }

                .label {
                    color: $blue-50;
                }
            }
        }
    }
}

.cta {
    @include body-2-semibold;
    color: $vermillion;
    margin-bottom: 16px;
    a {
        color: inherit;
        &:hover {
            span {
                text-decoration: underline;
            }
        }
    }
    svg {
        fill: inherit;
        margin-left: 4px;
        height: 14px;
    }
}

// A full-width grey section
.article-block__gray-section {
    background-color: $gray-10;
    padding: 48px 0;
    margin: 24px 0;

    > *:first-child {
        margin-top: 0;
    }

    > *:last-child {
        margin-bottom: 0;
    }

    // don't add the special heading formatting if we're inside a grey section
    .article-block__heading.has-supertitle {
        border: none;
        padding-top: 0;
    }
}

// A small grey block
.article-block__callout {
    .article-block__text,
    .article-block__list,
    .article-block__html,
    .article-block__numbered-list {
        @include body-3-regular;
        margin-bottom: 0;

        &:not(:last-child) {
            margin-bottom: 8px;
        }
    }

    a {
        @include owid-link-90;
    }
    color: $blue-60;
    background: $gray-10;
    padding: 16px 24px;
    border-radius: 8px;
    margin: 8px 0 32px;

    + .article-block__horizontal-rule {
        margin-top: 24px;
    }
}

@include column-block-override {
    margin: 48px 0;

    @include md-down {
        margin: 0;
    }
}

// Decrease the font size for body text in the small column
.article-block__sticky-left-right-column,
.article-block__sticky-right-left-column {
    @include text-block-override {
        @include body-2-regular;
    }
}

// Compensation for MDIM dropdown height in side-by-side charts
.mdim-compensation {
    @include sm-up {
        margin-top: 74px;
    }
}

.article-block__prominent-link {
    margin-bottom: 8px;
    color: $blue-90;
    background-color: $gray-5;
    padding: 16px;

    > .prominent-link__image {
        height: 100%;
        width: 100%;
        margin-top: 4px;
    }

    .prominent-link__image--centered,
    .prominent-link__text--centered {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .prominent-link__heading-wrapper {
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }

    .prominent-link__icon-external {
        color: $blue-60;
        margin-top: 4px;
    }

    &:hover .prominent-link__icon-external {
        color: $blue-90;
    }

    p {
        margin: 0;
        @include sm-only {
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
        }
    }

    h3 {
        display: inline-block;
        margin: 0 0 4px 0;
        &:hover {
            text-decoration: underline;
        }
    }

    // Last consecutive sibling.
    &:has(+ :not(.article-block__prominent-link)) {
        margin-bottom: 32px;
    }
}

.article-block__text + .article-block__prominent-link {
    margin-top: 16px; // makes 32px gap with the default 16px bottom margin of text blocks, for symmetry with bottom margin 👆
    @include sm-only {
        margin-top: 8px;
    }
}
.article-block__key-insights {
    .slide[data-active="true"] {
        // Have to override the WP styles, which we can undo once they're removed
        display: grid !important;
    }
}

.article-block__align {
    &.align-left {
        text-align: left;
    }

    &.align-center {
        text-align: center;
    }

    &.align-right {
        text-align: right;
    }
}

.html-table {
    @include body-3-medium;
    border-collapse: collapse;
    margin-bottom: 25px;
    td:first-child {
        background-color: $blue-10;
        vertical-align: top;
        font-weight: bold;
    }
    td {
        border: 1px solid $blue-20;
        padding: 16px;

        ul {
            margin-left: 16px;
            li {
                margin-bottom: 8px;
            }
        }
    }
    th {
        border: 1px solid;
        text-align: left;
        padding: 6px;
    }
}

.article-block__homepage-search {
    background-image: url("https://ourworldindata.org/images/world.svg");
    background-color: $blue-100;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    text-align: center;

    @include sm-only {
        background-size: 100%;
    }

    h2 {
        color: $amber;
        margin-top: 24px;
        margin-bottom: 8px;
    }

    h2.homepage-search__search-heading {
        @include md-down {
            @include body-2-regular;
            color: $blue-30;
            margin: 0;
            margin-bottom: 8px;
        }
    }

    h2.homepage-search__mobile-headline {
        margin: 16px 0;
        @include md-up {
            display: none;
        }
    }

    #autocomplete {
        height: 56px;
        background-color: #fff;
    }

    .aa-DetachedSearchButton {
        background-color: #fff;
        border-radius: 0;
        justify-content: space-between;
        cursor: text;
        height: 56px;
    }

    .aa-DetachedSearchButtonIcon {
        position: absolute;
        right: 0;
        background: white;
        svg {
            fill: $blue-50;
        }
    }

    .aa-DetachedSearchButtonPlaceholder {
        display: block;
        margin-left: 16px;
        white-space: nowrap;
        color: $blue-40;
        width: calc(100% - 56px);
        overflow: hidden;
        text-overflow: ellipsis;
        // Explicit line-height to prevent Safari from clipping descenders (g,
        // y, p, etc.) with overflow: hidden. The taller line box gives room for
        // descenders inside the clipping boundary.
        line-height: 1.4;
    }

    .aa-Form {
        background-color: #fff;
        border-color: $blue-20;
        height: 56px;
    }

    .aa-Input {
        padding: 40px 0;
        font-size: 1rem;
        &::placeholder {
            color: $blue-40;
        }

        &:placeholder-shown {
            text-overflow: ellipsis;
        }
    }

    .aa-InputWrapperPrefix {
        display: initial;
        margin-right: 8px;
    }

    .aa-Input::placeholder {
        color: $blue-30;
    }

    .homepage-search__links-and-tagline {
        color: $blue-30;
        display: inline-block;
        margin: 16px 0 24px;
        @include sm-only {
            margin: 16px;
        }
    }

    .homepage-search__links {
        display: flex;
        justify-content: center;
        gap: 16px;
        @include sm-only {
            display: none;
        }
    }

    .homepage-search__links--mobile {
        display: none;
        @include body-3-medium;
        a {
            @include owid-link-60;
            color: $blue-30;
            &:visited {
                color: $blue-30;
            }
        }
        @include sm-only {
            display: block;
        }
    }

    .homepage-search__link {
        @include owid-link-60;
        color: $blue-20;
        text-decoration: none;
        border: 1px solid $blue-50;
        border-radius: 32px;
        padding: 4.5px 12px;
        transition: 0.125s;
        &:visited {
            color: $blue-20;
        }
        &:hover {
            color: #fff;
            border-color: #fff;
            svg {
                color: $blue-30;
            }
        }
        svg {
            margin-right: 6px;
            color: $blue-50;
        }
    }

    .homepage-search__about-link {
        color: $blue-30;
        margin-top: 0;
        margin-bottom: 16px;
        @include body-2-regular;
        &:visited {
            color: $blue-30;
        }
        &:hover {
            text-decoration: underline;
        }
        svg {
            font-size: 12px;
            margin-bottom: 1px;
        }
        @include sm-only {
            @include body-3-regular;
        }
    }

    .homepage-search__tagline {
        margin-bottom: 0;
        font-size: 0.875rem;
        @include sm-only {
            margin-top: 0;
            @include body-3-medium;
        }
    }
}

.homepage-search__panel {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
}

.article-block__sticky-left:has(+ .article-block__heading) {
    margin-bottom: 0;
}
